{% extends "base.html" %} {% block content %}

<h1>{% if '/admin/dept/create' in full_path %}创建{% else %}编辑{%endif%}部门</h1>
{% if dept_id %}
<div class="panelBar">
	<ul class="toolBar">
		<li><a href="/admin/user/create/{{dept_id}}">新增用户</a></li>
		<li class="line">line</li>
	</ul>
</div>
{%endif%}
<div class="pageContent">
	<form action="" method="post">
		{% csrf_token %} {{ form.as_p }}
		<input name="submit" type="submit" value="确定"/>
	</form>
</div>

{% endblock %}
